# 设置源文件
gpio_sources = files(
  'gpio.cpp'
)

# 设置头文件目录
gpio_inc = include_directories(
  '../../../haslib/inc',
  '.'
)

# 创建gpio动态库
gpio_lib = shared_library(
  'gpio',
  gpio_sources,
  include_directories: gpio_inc,
  link_with: haslib_lib,
  install: true,
  install_dir: install_dir + 'opt/bmc/apps/devmon/drvlib/bus/gpio'
)

# 导出gpio库依赖
gpio_dep = declare_dependency(
  link_with: gpio_lib,
  include_directories: gpio_inc
)
